package nc.vo.acm.pub;

import nc.vo.pub.SuperVO;

public abstract class FluPubVO extends SuperVO {

	public FluPubVO() {
		super();
	}

	@Override
	public abstract String getPKFieldName();

	@Override
	public abstract String getParentPKFieldName();

	@Override
	public abstract String getTableName();
	
	public abstract String getFluPKFieldName();
	
	public abstract String getFluParentPKFieldName();
	
	public String getFluParentPrimaryKey(){
		if(getFluParentPKFieldName()!=null){
			if(getAttributeValue(getFluParentPKFieldName())==null){
				return null;
			}else{
				return getAttributeValue(getFluParentPKFieldName()).toString();				
			}
		}
		
		return null;
	}
	
	public void setFluParentPrimaryKey(String primaryKey){
		if(getFluParentPKFieldName()!=null){
			setAttributeValue(getFluParentPKFieldName(),primaryKey);				
		}
		
	}
	
	public String getFluPrimaryKey(){
		if(getFluPKFieldName()!=null){
			if(getAttributeValue(getFluPKFieldName())==null){
				return null;
			}else{
				return getAttributeValue(getFluPKFieldName()).toString();				
			}
		}
		
		return null;
	}
	
	public void setFluPrimaryKey(String primaryKey){
		if(getFluPKFieldName()!=null){
			setAttributeValue(getFluPKFieldName(),primaryKey);				
		}
		
	}

}
